<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>资金管理2</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link type="text/css" rel="stylesheet" href="css/style.css" />
    
  
    <script type="text/javascript" src="/EasyBuy/statics/js/menu.js"></script>    
        
	<script type="text/javascript" src="/EasyBuy/statics/js/select.js"></script>
  	<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.8.2.min.js"></script>     
  	<script type="text/javascript" src="/EasyBuy/statics/js/jquery-1.4.2.min.js"></script>
  	<script type="text/javascript">
   		$(document).ready(function (){
			$(".btn_tj").click(function (){
				location.href="BalanceServlet?opr=recharge&userid=${applicationScope.id}&money="+$(".rechargemoney").text()+"&remark="+$(".remark").text();
			});
			$(".money").attr("class","now");
   		});
   	</script>
  </head>
  
  <body>
  	<c:choose>
	  	<c:when test="${empty applicationScope.id}">
	  		<% response.sendRedirect("/EasyBuy/pre/Login.jsp");%>
	  	</c:when>
	  	<c:otherwise>
	  		<%@ include file="../../common/header.jsp" %>
			<%@ include file="../../common/backendHeader.jsp" %>
			 <c:choose>
				<c:when test="${empty applicationScope.type }">
					<% 	request.getRequestDispatcher("../../UserServlet?opr=type&href=Member_Address&href1=order").forward(request, response); %>
				</c:when>
				<c:otherwise>
					<c:if test="${applicationScope.type==1 }">
		  				<%@ include file="../../common/sideMamber.jsp" %> 
					</c:if>
					<c:if test="${applicationScope.type==0 }">
						<%@ include file="../../common/sideUser.jsp" %> 
					</c:if>
				</c:otherwise>
			 </c:choose>
	  	</c:otherwise>
  	</c:choose>
		
		<div class="m_right" id="m_right">
            <p></p>		
			<table border="0" class="ma_tab" style="width:930px; margin-top:50px;" cellspacing="0" cellpadding="0">
              <tr>
                <td align="right" width="130" style="padding-right:30px;">您的充值金额为</td>                                                                       
                <td class="rechargemoney"><%=request.getParameter("money") %></td>
                <td style="display:none" class="remark"><%=request.getParameter("remark") %></td>
              </tr>
              <tr>
                <td align="right" style="padding-right:30px;">您选择的支付方式为</td>
                	<%	
                		if(request.getParameter("zffs").equals("1")){
                	%>	
                	 <td>银行汇款/转账</td>
                	<%	
                		}else if(request.getParameter("zffs").equals("2")){
                	%>	
                	 <td>支付宝</td>
                	<%			
                		}
                 	%>
              </tr>
              <tr>
                <td align="right" style="padding-right:30px;">支付手续费用为</td>
                <td>￥ 0.00</td>
              </tr>
              <tr valign="top">
                <td align="right" style="padding-right:30px;">支付方式描述</td>
                <%	
                		if(request.getParameter("zffs").equals("1")){
                	%>	
                	  <td>
                	银行名称 收款人信息：全称 ××× ；帐号或地址 ××× ；开户行 ×××。 <br />
                    	注意事项：办理电汇时，请在电汇单“汇款用途”一栏处注明您的订单号。
                	</td>
                	<%	
                		}else if(request.getParameter("zffs").equals("2")){
                	%>	
                	 <td>
	                	支付宝网站(www.alipay.com) 是国内先进的网上支付平台。<br />
	                   	 支付宝收款接口：在线即可开通，<font color="#ff4e00">零预付，免年费，</font>单笔阶梯费率，无流量限制。<br />
	                    <a href="#" style="color:#ff4e00;">立即在线申请</a>
               		 </td>
                	<%			
                		}
                 	%>
              </tr>
			</table>
            <p align="center">
            	<%	
                		if(request.getParameter("zffs").equals("1")){
                	%>	
                	<input type="submit" value="银行汇款/转账" class="btn_tj" />
                	<%	
                		}else if(request.getParameter("zffs").equals("2")){
                	%>	
                	<input type="submit" value="立即使用支付宝支付" class="btn_tj" />
                	<%			
                		}
                 	%>	
            </p>
        </div>
 	<%@ include file="../../common/footer.jsp" %>    <!--引入下边栏-->
  </body>
</html>
